package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资讯收藏
 * </p>
 *
 * @author Author
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("info_collect")
public class InfoCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "collect_id", type = IdType.AUTO)
    private Integer collectId;

    /**
     * 用户id
     */
    private Integer userId;


    /**
     * 资讯类型
     */
    private Integer type;

    /**
     * 添加时间
     */
    private LocalDateTime createTime;

    /**
     * 资讯id
     */
    private Integer infoId;

    /**
     * 标题
     */
    @TableField(exist = false)
    private String title;

    /**
     * 标题
     */
    @TableField(exist = false)
    private String image;

    /**
     * 详细信息
     */
    @TableField(exist = false)
    private String message;

}
